<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
    <meta charset="UTF-8">
    <title>个人中心</title>
    <meta name="page-view-size" content="1280*720">
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/order.css">
    <script type="text/javascript" src="../lib/js/evm.js"></script>
    <script type="text/javascript" src="../lib/js/Evm_djyw.js"></script>
    <script type="text/javascript" src="../lib/js/key.js"></script>
    <script src="../lib/js/jquery-1.11.1.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../lib/js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/api.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/public.js" type="text/javascript" charset="utf-8"></script>
    <style>
      .list-info .list-title {
        left: 30px;
      }
      .list-info .list-time {
        left: 30px;
      }
    </style>
</head>

<body>
  <marquee behavior="" direction="">欢迎您进入凤阳县新时代文明实践中心！</marquee>
  <div class="orderList-bg" id="orderListMain">
    <div class="list-bg">
        <div class="list-con" id="list-con">
        </div>
        <div class="page-show" id="page_show">
            <span id="now_page">0</span>
            /
            <span id="total_page">0</span>
        </div>
    </div>
  </div>

</body>
<script>
  var modelIndex = {
      disUser: false,
      index: 0,//初始位置
      pageSize: 4,
      type: 1,
      listName: 'list-row', //模块名称
      containerId: 'list-con'//包含模块的标签id
  }    
  TV.structure('我的收藏')
  function getMessage(page, pageSize, pos, index) {
      var param = {
          page: page,
          pagesize: pageSize,
          // cid: TV.GetParam('id'),
          // area_id: $.cookie('TV_CST_AREA'),
          // device: 'tv',
          cardNo: 5555,
      }
      GetDatas('getMyCollection', param, function (err, res) {
          var mess = res.data;
          var str = '';
          console.log(mess)
          if (mess.items.length > 0) {
            for (var i = 0; i < mess.items.length; i++) {
                str += '<div class="list-row" data-id="'+ mess.items[i].aid +'"><div class="list-info">'
                //图片                      
                // var img = '';
                // if (mess.items[i].img == '') {
                //     img = '../images/base1.jpg'
                // } else {
                //     img = API_URL.imgURL + mess.items[i].img
                // }
                // str += '<div class="list-imgBar">'
                // str += "<img class='list-img' src=" + img + ">";
                // str += '</div>'
                //标题
                str += "<div class='list-title'><p class='ell'>" + mess.items[i].title + "</p></div>";
                // str +="<div class='list-brief'>" + mess.items[i].tpe_name + "</div>"
                str += "<div class='list-time'>添加时间：" + mess.items[i].add_time + "</div>"
                str += '</div>'

                //点单
                // str += '<div class="list-count">'
                // str += '已点单'
                // str += '<div class="list-number">' + mess.items[i].counts +'次</div>'
                // str += '</div>'
                str += '</div>'
              }
          } else {
              str += '<h1>暂无数据</h1>';
              $('#page_show').css('display', 'none');
          }
          $('#list-con').html(str);
          $('#now_page').html(page)
          $('#total_page').html(mess.totalpage)
          right.index = index ? index : pos == 'previous' ? pageSize - 1 : 0;
          right.initialization();
          right.toggleFocus(right.index);


      })
      // right.toggleFocus();
  }

    function direEnter(status, id, index) {
        window.location.href = 'articleDetail.html?id=' + $('.active').attr('data-id');

    }
</script>
<script type="text/javascript" src="../js/pageList.js"></script>

</html>